ASoC: Intel: boards: tgl_sdw_rt5682: Add machine driver - #1885
ASoC: Intel: boards: tgl_sdw_rt5682: Add machine driver#1885naveen-manohar wants to merge 1 commit into
Conversation
TGL machine driver with RT5682 connected SNDW Link0 with HDMI Audio & DMIC Support Signed-off-by: Naveen Manohar <naveen.m@intel.com>
|
Patch for Debug Purposes Only |
|
@naveen-manohar wrote:
Ack, I added "Draft-for-testing-not-ready-for-review" to inform people to not review this. Please remove the tag if you want to get reviews. |
|
@naveen-manohar could we look into reusing the same driver as for other SoundWire platforms? @RanderWang @bardliao now that I think of it, could we support the rt700 with the same machine driver, instead of maintaining sdw_rt700.c. That way we have a single machine driver for all SOF/SDW platforms. |
yes, the sdw_rt711_rt1308_rt715 can support rt700 and 5682 or other sdw codecs with codec info added. |
|
|
||
| config SND_SOC_INTEL_TGL_SOUNDWIRE_RT5682_MACH | ||
| tristate "TGL with RT5682 in SDW mode" | ||
| depends on I2C && ACPI |
| ret = snd_soc_component_set_jack(component, jack, NULL); | ||
|
|
||
| if (ret == -EAGAIN) { | ||
| msleep(500); |
|
|
||
| if (ret) { | ||
| dev_err(rtd->dev, "Headset Jack call-back failed: %d\n", ret); | ||
| return ret; |
There was a problem hiding this comment.
just do
if (ret)
dev_err(...);
return ret;
|
@naveen-manohar May I ask what would be the soc-acpi-intel-tgl-match.c change? Can you give an example |
@plbossart : Agreed, Let me try re-using sdw_rt711_rt1308_rt715.c for rt5682 at link0.. Its good thought to use single machine driver. |
|
@naveen-manohar we add more features in mach table, can I update your patch and create a PR for you ? |
|
Replaced by #1912 |
TGL machine driver with RT5682 connected SNDW Link0 with HDMI Audio
& DMIC Support
Signed-off-by: Naveen Manohar naveen.m@intel.com